package sy.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

/**
 * TTradeOrder entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_trade_order", catalog = "trade")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TTradeOrder implements java.io.Serializable
{
    
    // Fields    
    
    private String orderid;
    
    private String busicode;
    
    private String businame;
    
    private String busitypeid;
    
    private String cashid;
    
    private Double price;
    
    private String accountid;
    
    private String accno;
    
    private String accname;
    
    private String status;
    
    private String roadline;
    
    private String roaddesitin;
    
    private String tonnage;
    
    private String vehicleno;
    
    private String amount;
    
    private String netweight;
    
    private String grossweight;
    
    private String volume;
    
    private Double totalprice;
    
    private String description;
    
    private Double unitprice;
    
    private int dealstatus;
    
    //private Set<TorderBusiType> orderBusiTypes = new HashSet<TorderBusiType>();
    //private Set<TOrderCash> orderCashs = new HashSet<TOrderCash>();
    
    

    
    // Property accessors
    @Id
    @Column(name = "ORDERID", unique = true, nullable = false, length = 36)
    public String getOrderid()
    {
        return this.orderid;
    }
    
    public void setOrderid(String orderid)
    {
        this.orderid = orderid;
    }
    
    @Column(name = "BUSICODE", nullable = false, length = 20)
    public String getBusicode()
    {
        return this.busicode;
    }
    
    public void setBusicode(String busicode)
    {
        this.busicode = busicode;
    }
    
    @Column(name = "BUSINAME", nullable = false, length = 20)
    public String getBusiname()
    {
        return this.businame;
    }
    
    public void setBusiname(String businame)
    {
        this.businame = businame;
    }
    
    @Column(name = "BUSITYPEID", nullable = false, length = 36)
    public String getBusitypeid()
    {
        return this.busitypeid;
    }
    
    public void setBusitypeid(String busitypeid)
    {
        this.busitypeid = busitypeid;
    }
    
    @Column(name = "CASHID", nullable = false, length = 36)
    public String getCashid()
    {
        return this.cashid;
    }
    
    public void setCashid(String cashid)
    {
        this.cashid = cashid;
    }
    
    @Column(name = "PRICE", precision = 10)
    public Double getPrice()
    {
        return this.price;
    }
    
    public void setPrice(Double price)
    {
        this.price = price;
    }
    
    @Column(name = "ACCOUNTID", nullable = false, length = 36)
    public String getAccountid()
    {
        return this.accountid;
    }
    
    public void setAccountid(String accountid)
    {
        this.accountid = accountid;
    }
    
    @Column(name = "ACCNO", length = 20)
    public String getAccno()
    {
        return this.accno;
    }
    
    public void setAccno(String accno)
    {
        this.accno = accno;
    }
    
    @Column(name = "ACCNAME", length = 20)
    public String getAccname()
    {
        return this.accname;
    }
    
    public void setAccname(String accname)
    {
        this.accname = accname;
    }
    
    @Column(name = "STATUS", length = 30)
    public String getStatus()
    {
        return this.status;
    }
    
    public void setStatus(String status)
    {
        this.status = status;
    }
    
    @Column(name = "ROADLINE", length = 20)
    public String getRoadline()
    {
        return this.roadline;
    }
    
    public void setRoadline(String roadline)
    {
        this.roadline = roadline;
    }
    
    @Column(name = "ROADDESITIN", length = 20)
    public String getRoaddesitin()
    {
        return this.roaddesitin;
    }
    
    public void setRoaddesitin(String roaddesitin)
    {
        this.roaddesitin = roaddesitin;
    }
    
    @Column(name = "TONNAGE", length = 10)
    public String getTonnage()
    {
        return this.tonnage;
    }
    
    public void setTonnage(String tonnage)
    {
        this.tonnage = tonnage;
    }
    
    @Column(name = "VEHICLENO", length = 10)
    public String getVehicleno()
    {
        return this.vehicleno;
    }
    
    public void setVehicleno(String vehicleno)
    {
        this.vehicleno = vehicleno;
    }
    
    @Column(name = "AMOUNT", length = 10)
    public String getAmount()
    {
        return this.amount;
    }
    
    public void setAmount(String amount)
    {
        this.amount = amount;
    }
    
    @Column(name = "NETWEIGHT", length = 10)
    public String getNetweight()
    {
        return this.netweight;
    }
    
    public void setNetweight(String netweight)
    {
        this.netweight = netweight;
    }
    
    @Column(name = "GROSSWEIGHT", length = 10)
    public String getGrossweight()
    {
        return this.grossweight;
    }
    
    public void setGrossweight(String grossweight)
    {
        this.grossweight = grossweight;
    }
    
    @Column(name = "VOLUME", length = 10)
    public String getVolume()
    {
        return this.volume;
    }
    
    public void setVolume(String volume)
    {
        this.volume = volume;
    }
    
    @Column(name = "TOTALPRICE", precision = 10)
    public Double getTotalprice()
    {
        return this.totalprice;
    }
    
    public void setTotalprice(Double totalprice)
    {
        this.totalprice = totalprice;
    }
    
    @Column(name = "DESCRIPTION", length = 50)
    public String getDescription()
    {
        return this.description;
    }
    
    public void setDescription(String description)
    {
        this.description = description;
    }
    
    @Column(name = "UNITPRICE", precision = 10)
    public Double getUnitprice()
    {
        return this.unitprice;
    }
    
    public void setUnitprice(Double unitprice)
    {
        this.unitprice = unitprice;
    }

	public int getDealstatus() {
		return dealstatus;
	}

	public void setDealstatus(int dealstatus) {
		this.dealstatus = dealstatus;
	}

	/*@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "torderBusiType")
	public Set<TorderBusiType> getOrderBusiTypes() {
		return orderBusiTypes;
	}

	public void setOrderBusiTypes(Set<TorderBusiType> orderBusiTypes) {
		this.orderBusiTypes = orderBusiTypes;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tOrderCash")
	public Set<TOrderCash> getOrderCashs() {
		return orderCashs;
	}

	public void setOrderCashs(Set<TOrderCash> orderCashs) {
		this.orderCashs = orderCashs;
	}*/
    
	
    
}
